package com.vincent.utils;

import com.vincent.common.Command;

/**
 * Created by wensen on 2016/12/8.
 */
public class PValue {

    private final BallotNumber ballot_number;
    private final long slot_number;
    private final Command command;

    public PValue(BallotNumber ballot, long slot, Command cmd) {

        this.ballot_number = ballot;
        this.slot_number = slot;
        this.command = cmd;
    }

    public BallotNumber ballot_number() {
        return this.ballot_number;
    }

    public long slot_number() {
        return this.slot_number;
    }

    public Command command() {
        return this.command;
    }

    public String toString() {
        return "{PValue: [ballot: " + this.ballot_number
                + " slot: " + slot_number
                + " command: " + command + "]}";
    }
}
